Skip to content

flexible restart writing in UFS#1651

Merged
jiandewang merged 5 commits into
mom-ocean:mainfrom
jiandewang:DEV-EMC-flexible-restart-20250121
Feb 3, 2025
Merged

flexible restart writing in UFS#1651
jiandewang merged 5 commits into
mom-ocean:mainfrom
jiandewang:DEV-EMC-flexible-restart-20250121

Conversation

@jiandewang
Copy link
Copy Markdown
Collaborator

This mini PR add the capability of flexible restart write times which is controlled by "restart_fh" for all subcomponents (ocean, ice, wave and mediator) in UFS. Detail can be found at NOAA-EMC#139
The only file that is being modified is mom_cap.F90
Thanks for @alperaltuntas to pre-test this in NCAR system

NickSzapiro-NOAA and others added 3 commits December 11, 2024 11:08
Modify mom_cap.F90 so that restart writes can be triggered at any forecast time via UFS configuration as for other components
…n-20241127

update to main repo. 20250113 commit (20241127-PR)
Copy link
Copy Markdown
Collaborator

@abozec abozec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COAPS is not using the nuopc_cap so we approve ...

Copy link
Copy Markdown
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, we are not very happy with the use of CPP macros, as it leads to code that might not even compile, but in this case this is an extension of macros that already exist and are in use to accommodate differences between the CESM version of the NUOPC coupler and the version used by other people. We might want to think more carefully about whether there are other non-EMC and non-CESM folks who are using the NUOPC coupler and might need to be consulted with these changes.

That being said, GFDL does not use the NUOPC cap for our configurations, so this would not be a problem from our end. (@marshallward will need to issue the formal approval from the GFDL side.)

@marshallward
Copy link
Copy Markdown
Collaborator

marshallward commented Jan 25, 2025

@Hallberg-NOAA Your approval counts towards the total approval, so nothing more is needed from GFDL.

Although it's "one vote per node", there's no way to enforce this in GitHub, so centers with multiple approvers have to self-enforce this. (I have removed myself from the reviewer list.)

@marshallward marshallward removed their request for review January 25, 2025 13:46
Copy link
Copy Markdown
Collaborator

@mathomp4 mathomp4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GEOS does not compile this file, so easy approve.

Copy link
Copy Markdown
Collaborator

@kshedstrom kshedstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not using this file. either.

@jiandewang
Copy link
Copy Markdown
Collaborator Author

@alperaltuntas did you get a chance to check this PR ?

Comment thread config_src/drivers/nuopc_cap/mom_cap.F90
NickSzapiro-NOAA and others added 2 commits January 30, 2025 16:02
Encapsulate init_is_restart_fh in ifndef CESMCOUPED
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.64%. Comparing base (40f4721) to head (a7f8fd5).
Report is 178 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1651      +/-   ##
==========================================
- Coverage   37.05%   36.64%   -0.41%     
==========================================
  Files         271      278       +7     
  Lines       81272    84342    +3070     
  Branches    15162    15903     +741     
==========================================
+ Hits        30112    30904     +792     
- Misses      45523    47593    +2070     
- Partials     5637     5845     +208     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiandewang
Copy link
Copy Markdown
Collaborator Author

thanks for everybody's time to review this PR. I am going to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants